package com.puntodonna.fogliocassa.client.action;

import com.gwtplatform.dispatch.shared.Result;
import com.puntodonna.fogliocassa.shared.UserObj;

import java.lang.String;
import java.lang.Boolean;

public class LoginActionResult implements Result {

	private String result;
	private Boolean loggedIn;
	private UserObj userObj;

	@SuppressWarnings("unused")
	private LoginActionResult() {
		// For serialization only
	}
	
	public LoginActionResult(String result, Boolean loggedIn, UserObj userObj) {
		this.result = result;
		this.loggedIn = loggedIn;
		this.userObj = userObj;
	}

	public LoginActionResult(String result, Boolean loggedIn) {
		this.result = result;
		this.loggedIn = loggedIn;
	}

	public String getResult() {
		return result;
	}

	public Boolean isLoggedIn() {
		return loggedIn;
	}
	
	public UserObj getUserObj() {
		return userObj;
	}
}
